package chapte09;

class Student01{
    private String name;
    private int age;
    // 定义构造方法
    public Student01 (String name,int age){
        this.name = name;
        this.age = age;
    }
    public String read(){
        return "我是:"+name+"年龄:"+age;
    }
}
public class example10 {
    public static void main(String[] args) {
        Student01 stu = new Student01("张三",18);
        System.out.println(stu.read());
    }
}
